﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JuneMy11project
{
    class Program
    {
        static void Main(string[] args)
        {
            ArrayList names = new ArrayList();

            names.Add("aaa");
            names.Add("bbb");
            names.Add("ccc");
            names.Add("ddd");
            names.Add("eee");
            names.Add("fff");

            Console.WriteLine("The oriiginal list of names:");
            foreach (Object name in names)
            {
                Console.WriteLine(name);
                Console.WriteLine();
            }

            ArrayList list1 = new ArrayList();
            ArrayList list2 = new ArrayList(list1);
            ArrayList list3 = new ArrayList(list2);
            ArrayList list4 = new ArrayList() { 1, 2, 3, 4 };
            
            foreach(var b in list4)
            {
                Console.WriteLine(b );
            }

        }

    }
}
